<template>
	<view>
		<view class="nav">
			<view @click="goBack" class="back"><i class="iconfont icon-fanhui"></i></view>
			<view class="nav_title">{{userName}}的粉丝</view>
			<view></view>
		</view>
		<view class="list">
			<tabulation-com :data='fensiList'></tabulation-com>
		</view>
	</view>
</template>

<script>
	import {
		GetFensi
	} from '@/api/index.js'
	import "@/public/icon/iconfont.css";
	import TabulationCom from '../../../components/TabulationCom/TabulationCom.vue'
	export default {
		data() {
			return {
				userName: '',
				fensiList: []
			}
		},
		components: {
			TabulationCom
		},
		onLoad(options) {
			this.userName = options.name;
			this.getData()
		},
		methods: {
			goBack() {
				uni.navigateBack({
					delta: 1
				})
			},
			getData() {
				GetFensi().then(res => {
					console.log(res.data);
					if(res.code == 200){
						this.fensiList = res.data
					}
				}).catch(err => {
					console.log(err);
				})
			}
		}
	}
</script>

<style scoped>
	@import url(./fensi.css);
</style>